package org.keyyond.ms.commonservice.service;

import org.keyyond.ms.commonservice.service.impl.MsCommonMessageLogServiceImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author YCR
 * @belong to Shccs
 * @date:2018年1月23日
 * @date:2018年1月23日
 * @version : V1.0
 */
@FeignClient(name = "keyyond-ms-business", fallback = MsCommonMessageLogServiceImpl.class)
public interface MsCommonMessageLogService {

    /**
     * 短信日志记录功能
     * @author YCR
     * @param SmsMessageLog转换为json对象
     * @return json字符串
     * @throws
     */
    @RequestMapping(value = "/sms/addLog", method = RequestMethod.POST)
    String addMessageLog(@RequestParam("param") String param);

    /**
     * 验证码校验
     * @author YCR
     * @param 手机号和验证码类型的json字符串
     * @return String
     * @throws
     */
    @RequestMapping(value = "/sms/validateSmsInfo", method = RequestMethod.POST)
    String validateSmsInfo(@RequestParam("param") String param);
}
